

function PropertyPanel(){
	this.propertyPanel = document.getElementById('propertyPanel');
	// this.gui = new dat.GUI({autoPlace: false});
}

PropertyPanel.prototype.update = function(){
	
	
	//清空属性面板
	this.clean();

	if(activeObject.modifier != undefined && activeObject.modifier != null){
		this.propertyPanel.appendChild(activeObject.modifier.gui.domElement);
	}
	else this.propertyPanel.appendChild(activeObject.gui.domElement);
}

PropertyPanel.prototype.clean = function(){
	// this.gui = new dat.GUI({autoPlace: false});
	for(var i = this.propertyPanel.childNodes.length-1;i >= 0;i--){
		this.propertyPanel.removeChild(this.propertyPanel.childNodes[i]);
	}
}
